#include"stack.h"

void test01()
{
	Stack* ps = (Stack*)malloc(sizeof(Stack));
	if (ps == NULL)
	{
		perror("malloc fail");
		exit(1);
	}
	StackInit(ps);
	StackPush(ps, 1);
	StackPush(ps, 2);
	StackPush(ps, 3);
	//StackPush(ps, 4);
	StackPop(ps);
	printf("%d\n", StackTop(ps));
	printf("%d", StackEmpty(ps));
}
int main()
{
	test01();
	return 0;
}